package com.binhthuan.catechist.shared.session;

import com.google.gson.annotations.Expose;

import name.pehl.piriti.client.json.Json;
import name.pehl.piriti.client.json.JsonReader;

public class UserSession {
    public interface UserSessionReader extends JsonReader<UserSession> {
    }
    
    public static UserSessionReader READER;
    
    @Json
    @Expose
    private String sessionId;
    @Json
    @Expose
    private Integer id;
    @Json
    @Expose
    private String username;
    @Json
    @Expose
    private String lastLoginDate;
    @Json
    @Expose
    private String lastLoginIP;
    @Json
    @Expose
    private Boolean locked;
    @Json
    @Expose
    private String firstName;
    @Json
    @Expose
    private String lastName;
    @Json
    @Expose
    private String patronSaint;
    @Json
    @Expose
    private String avartar;
    @Json
    @Expose
    private long securityCode;
    @Json
    @Expose
    private Integer currentCourseId;
    @Json
    @Expose
    private Integer yearId;

    public UserSession() {

    }

    /**
     * @return the sessionId
     */
    public String getSessionId() {
        return sessionId;
    }

    /**
     * @param sessionId the sessionId to set
     */
    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    /**
     * @return the id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     *            the id to set
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return the username
     */
    public String getUsername() {
        return username;
    }

    /**
     * @param username
     *            the username to set
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * @return the lastLoginDate
     */
    public String getLastLoginDate() {
        return lastLoginDate;
    }

    /**
     * @param lastLoginDate
     *            the lastLoginDate to set
     */
    public void setLastLoginDate(String lastLoginDate) {
        this.lastLoginDate = lastLoginDate;
    }

    /**
     * @return the lastLoginIP
     */
    public String getLastLoginIP() {
        return lastLoginIP;
    }

    /**
     * @param lastLoginIP
     *            the lastLoginIP to set
     */
    public void setLastLoginIP(String lastLoginIP) {
        this.lastLoginIP = lastLoginIP;
    }

    /**
     * @return the locked
     */
    public Boolean getLocked() {
        return locked;
    }

    /**
     * @param locked
     *            the locked to set
     */
    public void setLocked(Boolean locked) {
        this.locked = locked;
    }

    /**
     * @return the firstName
     */
    public String getFirstName() {
        return firstName;
    }

    /**
     * @param firstName
     *            the firstName to set
     */
    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    /**
     * @return the avartar
     */
    public String getAvartar() {
        return avartar;
    }

    /**
     * @param avartar
     *            the avartar to set
     */
    public void setAvartar(String avartar) {
        this.avartar = avartar;
    }

    /**
     * @return the securityCode
     */
    public long getSecurityCode() {
        return securityCode;
    }

    /**
     * @param securityCode
     *            the securityCode to set
     */
    public void setSecurityCode(long securityCode) {
        this.securityCode = securityCode;
    }

    /**
     * @return the currentClassId
     */
    public Integer getCurrentCourseId() {
        return currentCourseId;
    }

    /**
     * @param currentCourseId the currentClassId to set
     */
    public void setCurrentCourseId(Integer currentCourseId) {
        this.currentCourseId = currentCourseId;
    }

    /**
     * @return the lastName
     */
    public String getLastName() {
        return lastName;
    }

    /**
     * @param lastName the lastName to set
     */
    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    /**
     * @return the patronSaint
     */
    public String getPatronSaint() {
        return patronSaint;
    }

    /**
     * @param patronSaint the patronSaint to set
     */
    public void setPatronSaint(String patronSaint) {
        this.patronSaint = patronSaint;
    }

    /**
     * @param year the year to set
     */
    public void setYearId(Integer yearId) {
        this.yearId = yearId;
    }

    /**
     * @return the year
     */
    public Integer getYearId() {
        return yearId;
    }
}
